package top.tenebrous.yzl.chat.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.tenebrous.yzl.chat.domain.system.SysMenu;

import java.util.ArrayList;
import java.util.List;

@ApiModel(value = "菜单返回dto")
public class MenuResDto extends SysMenu {

    private static final long serialVersionUID = 6103506763837895211L;

    @ApiModelProperty(value = "子菜单")
    private List<MenuResDto> subMenuList;

    @ApiModelProperty(value = "是否有子菜单，0-否  1-是")
    public String hasLeaf;

    public List<MenuResDto> getSubMenuList() {
        if (null == this.subMenuList) {
            subMenuList = new ArrayList<MenuResDto>();
        }
        return subMenuList;
    }

    public void setSubMenuList(List<MenuResDto> subMenuList) {
        this.subMenuList = subMenuList;
    }

    public String getHasLeaf() {
        return hasLeaf;
    }

    public void setHasLeaf(String hasLeaf) {
        this.hasLeaf = hasLeaf;
    }

}
